<table width="100%" border="0">
  <tr>
    <th>Item</th>
    <th>Base Price</th>
    <th>Min. Price</th>
    <th>Avg. Price</th>
    <th>Available Items</th>
  </tr>
  {foreach from=$items item=i}
    <tr class="{cycle values='row,rowAlt'}">
      <td>
        <a href="#" onclick="showInfo({$i.typeid});return false;">
          {if $i.typeGraphic}
            <img src="{$site_url}/eveimages/types/32/{$i.typeid}.png" alt="{$i.typename}" align="absmiddle" />
          {else}
            <img src="{$site_url}/eveimages/icons/32/icon{$i.icon}.png" alt="{$i.typename}" align="absmiddle" />
          {/if}
        </a>
        {$i.typename}
      </td>
      <td align="right">{$i.baseprice|eveNum}</td>
      <td align="right">{$i.pricing.minSell|eveNum}</td>
      <td align="right">{$i.pricing.avgSell|eveNum}</td>
      <td align="right">{$i.pricing.qtySell|eveNumInt}</td>
    </tr>
  {/foreach}
  <tr>
    <th></th>
    <th><div align="right">{$totals.base|eveNum}</div></th>
    <th><div align="right">{$totals.min|eveNum}</div></th>
    <th><div align="right">{$totals.avg|eveNum}</div></th>
    <th></th>
  </tr>
</table>

<br />
<form method="post" action="{$site_url}/?module=util_prices">
    <b>Paste a fitting from EFT, or enter a list of item names (one per line):</b><br />
    <textarea name="items" style="width: 90%; height: 200px;">{foreach from=$items item=i}{$i.typename}
{/foreach}</textarea><br /><br />
    <b>Limit to region:</b><br />
    <select name="region">
      <option value="0">All</option>
      {section name=r loop=$regions}
        <option value="{$regions[r].regionid}" {if $regions[r].regionid == $region}selected="true"{/if}>{$regions[r].regionname}</option>
      {/section}
    </select>
    &nbsp; <input type="submit" value="Get Prices" />
</form>
